package com.xxzuibang.day12.inner;

public class LocalInnerClass {
    public static void main(String[] args) {

        Outer outer=new Outer();
        outer.m1();
        System.out.println("outer的hashcode="+outer);
    }
}

class Outer{
    private int n1=100;
    private void m2(){
        System.out.println("Outer方法");
    }

    public void m1() {
        private int n1=800;
        public void f1(){
            System.out.println("n1="+n1);
            m2();
            //拿到外部类的n1
            System.out.println("外部类的n1"+Outer.this.n1);
            System.out.println("Outer.this.hashcode="+Outer.this);
        }
    }

}